package designMode.decorator.cbf4life;

/**
 * Created by jingqing.zhou on 2015/4/30.
 */
public class HighScoreDecoratorReport extends DecoratorReport {
    public HighScoreDecoratorReport(SchoolReport sr) {
        super(sr);
    }

    /**
     * 装饰方法
     */
    private void reportHighScore(){
        System.out.println("这次考试语文最高是75，数学是78，自然是80");
    }

    /**
     * 具体构件方法
     * 最高成绩我要做老爸看成绩单前告诉他，否则等他一看，就抡起笤帚有揍我，我那还有机会说呀
     */
    public void report(){
        this.reportHighScore();
        super.report();
    }
}
